using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

namespace MoEngine
{
    public class Camera2D : ICamera
    {
        #region ICamera Members

        protected Vector3 m_Center;

        public Vector3 Center
        {
            get { return m_Center; }
            set { m_Center = value; }
        }

        protected Point m_ViewportSize;

        public Point ViewportSize
        {
            get { return m_ViewportSize; }
            set { m_ViewportSize = value; }
        }

        public float Yaw
        {
            get { return 0.0f; }
            set { }
        }

        public float Pitch
        {
            get { return 0.0f; }
            set { }
        }

        public float Roll
        {
            get { return 0.0f; }
            set { }
        }

        public Point TopLeft
        {
            get { return new Point((int)Center.X - ViewportSize.X / 2,  (int)Center.Y - ViewportSize.Y / 2); }
        }

        public Rectangle ViewRect
        {
            get 
            {
                Point topLeft = TopLeft;
                return new Rectangle(topLeft.X, topLeft.Y, ViewportSize.X, ViewportSize.Y);
            }
        }

        #endregion
    }
}
